docs/css-overview: Fix color functions’ arg orders
authorDaniel Boles <dboles@src.gnome.org>
Fri, 17 Mar 2017 23:25:13 +0000 (23:25 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Fri, 17 Mar 2017 23:31:41 +0000 (23:31 +0000)
shade/alpha/mix() take colour(s) and a number that is the ratio by which
to transform them. It was written here that these shall be passed in the
order (number, colour). That was wrong: they must be passed in the order
(colour[s], number) to work, and for the Inspector not to flag an error.

docs/reference/gtk/css-overview.xml

index 6afa20a6fe27aa4717bb3dacac0e8c536801da79..d5e6cf2cf36bd9f446218fb2ec392ae03594cc67 100644 (file)
@@ -587,7 +587,7 @@ background-color: @bg_color;
       set of base colors.
     </para>
 
-<literallayout><code>〈color expression〉 = lighter(〈color〉) | darker(〈color〉) | shade(〈number〉,〈color〉) | alpha(〈number〉,〈color〉) | mix(〈number〉,〈color〉,〈color〉)</code>
+<literallayout><code>〈color expression〉 = lighter(〈color〉) | darker(〈color〉) | shade(〈color〉,〈number〉) | alpha(〈color〉,〈number〉) | mix(〈color〉,〈color〉,〈number〉)</code>
 </literallayout>
 
     <para>